<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关工委网站管理后台</title>
        <!--                       CSS                       --><!-- Reset Stylesheet -->
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/master/listColumn.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <!--                       Javascripts                       --><!-- jQuery -->
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <!-- jQuery Configuration -->
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <!-- Facebox jQuery Plugin -->
        <script type="text/javascript" src="../js-plugin/facebox.js">
        </script>
        <!-- confirm jQuery Plugin -->
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/AdminUser.js">
        </script>
        <style>
            form .error {
                background: none;
                color: #F30;
            }
        </style>
    </head>
    <body>
        <div id="main-content">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>系统管理员设置</h3>
                    <div class="clear">
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <div class="content-box column-left">
                            <div class="content-box-header">
                                <h3>管理员列表</h3>
                            </div>
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <table>
                                        <thead>
                                            <tr>
                                                <th width="60%">登录名称</th>
                                                <th width="40%">管理</th>
                                            </tr>
                                        </thead>
                                        <tbody class="listbody">
                                            <#list adminlist as admin>
                                            <tr id="tr_${admin.id?c}">
                                                <td>${admin.uname}</td>
                                                <td>
                                                    <a class="button button_fix editBtn" href="${admin.id?c}" uname="${admin.uname}" utype="${admin.type}">修改</a>
                                                    <a class="button button_fix delBtn" href="${admin.id?c}" title="您确定删除${admin.uname}的管理帐号么">删除</a>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="content-box column-right">
                            <div class="content-box-header">
                                <h3 class="fromFiled">新增管理人员</h3>
                                <a class="button align-right20 button_fix addBtn" href="#">新增 </a>
                            </div>
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <form id="masterNew" name="masterNew" method="post" action="/action/master/addMaster">
                                        <input type="hidden" id="masterid" name="id" />
                                        <p>
                                            <label>人员姓名</label>
                                            <input class="text-input medium-input" type="text" id="uname" name="uname" />
                                        </p>
                                        <p>
                                            <label>登录密码</label>
                                            <input class="text-input medium-input" type="password" id="upass" name="upass" />
                                        </p>
                                        <p>
                                            <label>用户类型</label>
                                            <select name="type" id="type" style="width: 52%;">
                                                <option value="0">普通用户</option>
                                                <option value="1">管理员</option>
                                            </select>
                                        </p>
                                        <p>
                                            <a href="#" class="button saveBtn">保存 </a>
                                        </p>
                                    </form>
                                </div>
                                <div class="notification png_bg" style="display:none">
                                    <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                                    <div id="errormsg">错误信息</div>
                                </div>
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
